
<div class="content clearfix" >
	<div class="con_l">
		<span>角色</span>
		<ul class="nav_left" >
			<li>
				<a href="javascript:void(0);" class="active" ng-click="all()"><i class="icon_all"></i>所有成员</a>
			</li>
		</ul>
		<ul class="nav_left">
			<li>
				<a href="javascript:void(0);" ng-click="admini()"><i class="icon_admin"></i>管理员</a>
			</li>
		</ul>
		<ul class="nav_left">
			<li>
				<a href="javascript:void(0);" ng-click="memberinf()"><i class="icon_member"></i>成员</a>
			</li>
		</ul>
		
		
		<!--描述:下面的是岗位列表-->
		<span>岗位</span>
		<ul class="nav_left" ng-repeat="(k,v) in cateinfo">
			<li>
				<a href="javascript:void(0);" ng-click="cate(v,k)"><i class="icon_post"></i>{{v.cate_name}}</a>
			</li>
		</ul>
		<div class="blank"></div>
	</div>


	<div class="con_r" style="position: relative;" ng-show="loading_show">
		<!--加载图开始-->
		<div class="loaders">
			<div class="loader">
				<div class="loader-inner line-scale">
					<div></div>
					<div></div>
					<div></div>
					<div></div>
					<div></div>
				</div>
			</div>
		</div>
		<!--加载图结束-->
	</div>
	<div class="con_r comp_list " ng-if="member_blank&&!loading_show" >
		<div class="navbar_member">
			<span>成员数&nbsp;&nbsp;·&nbsp;&nbsp;1/{{memberinfo.menber_total}}</span>
			<button ng-click="addMember()" ng-if="app.user.data.role_id==1||app.user.data.role_id==2">添加成员</button>
		</div>
        <div class="member_info">
			<span class="favicon"></span>
			<div class="detail_info">
				<div class="name" ng-bind="$scope.app.user.user_name">{{app.user.user_name}}</div>
				<div class="number" ng-bind="$scope.app.user.phone"></div>
			</div>
			<p class="getin" >已加入</p>
			<p class="role" >拥有者</p>
			<p class="post" >老板</p>
		</div>
	</div>
	<div class="con_r comp_list undo " ng-if="!member_blank&&!loading_show">
		<div class="navbar_member" >
			<span ng-show="allmember">成员数&nbsp;&nbsp;·&nbsp;&nbsp;{{memberinfo.menber_num}}/{{memberinfo.menber_total}}</span>
			<span ng-show="administr">成员数&nbsp;&nbsp;·&nbsp;&nbsp;{{admin.len}}/{{memberinfo.menber_total}}</span>
			<button ng-click="addMember()" ng-if="app.user.data.role_id==1||app.user.data.role_id==2">添加成员</button>
		</div>
		<div class="table_list2">
		<div class="member_info member_header">
			<span class="favicon_new">账号</span>
			<div class="detail_info">

			</div>
			<p class="getin" style="font-weight: bold;">加入状态</p>
			<p class="role" style="font-weight: bold;">角色</p>
			<p class="station" style="font-weight: bold;">岗位</p>
			<p class="job" style="font-weight: bold;">职位</p>
			<p class="grade" style="font-weight: bold;">能力评测等级</p>
		</div>
		<div class="member_info" ng-repeat="item in items" ng-show="allmember">
			<span class="favicon"><img ng-src="{{item.photo}}"></span>
			<div class="detail_info">
				<div class="name" ng-bind="item.user_name"></div>
				<div class="number" ng-bind="item.phone"></div>
			</div>
			<p ng-class="{notgetin:item.status==0}" class="getin" ng-bind="item.statue_name"></p>
			<p class="role" ng-bind="item.role_name"ng-class="{role_left:item.status==0}" ></p>
			<p class="station" ng-bind="item.cate_name"ng-class="{cate_left:item.status==0,role_id:item.role_id==0}"></p>
			<p class="job" ng-bind="item.position"></p>
			<p class="grade" ng-bind="item.check_post">初级运营，初级客服，初级美工，初级营销</p>
			<button class="edit" ng-click="edit(item)" ng-show="item.role_id!=1&&item.is_edit==1">编辑</button>
			<button class="delete" ng-click="deletememeber(item)"ng-show="item.role_id!=1&&item.role_id!=app.user.data.role_id&&item.is_remove==1" >移除</button>
		</div>
		<div class="member_info" ng-repeat="item in admin" ng-show="administr">
			<span class="favicon"><img ng-src="{{item.photo}}"></span>
			<div class="detail_info">
				<div class="name" ng-bind="item.user_name" >{{item.user_name}}</div>
				<div class="number" ng-bind="item.phone"></div>
			</div>
			<p  ng-class="{notgetin:item.status==0}" class="getin" ng-bind="item.statue_name"></p>
			<!--<p class="role" ng-bind="item.role_name"ng-class="{role_left:item.status==0}" ></p>-->
			<p class="role" ng-bind="item.role_name"></p>
			<p class="station" ng-bind="item.cate_name"ng-class="{cate_left:item.status==0,role_id:item.role_id==0}"></p>
			<p class="job" ng-bind="item.position"></p>
			<p class="grade" ng-bind="item.check_post">初级运营，初级客服，初级美工，初级营销</p>
			<button class="edit" ng-click="edit(item)" ng-show="item.role_id!=1&&item.is_edit==1">编辑</button>
			<button class="delete" ng-click="deletememeber(item)"ng-show="item.role_id!=1&&item.role_id!=app.user.data.role_id&&item.is_remove==1" >移除</button>
		</div>
		</div>
	</div>
</div>
<!-- 弹窗 -->
<div ng-if="deletelModal.isShow" class="tipModal"  style="display: block;" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
	<div class="modal-backdrop fade in"></div>
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header modal-header-tip">
				<div class="btn-close" data-dismiss="modal"><i class="icon-close icon-close1" ng-click="deletelModal.hide()"></i></div>
				<h4 class="modal-title" ng-bind="deletelModal.title">温馨提示</h4>
			</div>
			<div class="modal-body modal-body-tip jl-yich"> 确定从企业移除{{deletelModal.data}}吗?</div>
			<div class="modal-footer modal-footer-x">
				<button type="button" class="btn btn-green jl-juzh1" ng-click="deletelModal.cancel()" style="margin-right:20px ; background: #e6e6e6; color: #000;">取消</button>
				<button type="button" class="btn btn-green modal-footer-g jl-juzh2" ng-click="deletelModal.confirm()">确定</button>
			</div>
		</div>
	</div>
</div>
<div ng-if="addModal.isShow"  class="tipModal" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
	<div class="modal-backdrop fade in"></div>
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header modal-header-tip">
				<div class="btn-close" data-dismiss="modal"><i class="icon-close icon-close1" ng-click="addModal.hide()"></i></div>
				<h4 class="modal-title" ng-bind="addModal.title"></h4>
			</div>
			<div class="tips"></div>
			<div class="modal-body modal-body-tip">

				<div>
					<span>选择角色</span>
					<select name="selectRole" id="selectRole" ng-model="$parent.roles" ng-focus="seclec()">
						<option value="" disabled ng-show="sel">请选择角色</option>
						<!--<option value="" ng-show="sel" ng-click="seclec()">请选择角色</option>-->
						<!--<option value="">请选择角色</option>-->
						<option  value="0">成员</option>
						<!--ng-if="app.user.role_id==1"-->
						<option value="2">管理员</option>
					</select>
				</div>
				<div><span>选择岗位</span>
					<select class="sele_add" ng-focus="seclec()" name="selectPost" id="selectPost" ng-model="$parent.posts"ng-disabled="roles==2"ng-class="{posts_color:roles==2}">
						<option disabled ng-show="sel" value="">请选择岗位</option>
						<option value="1">运营</option>
						<option value="2">客服</option>
						<option value="3">美工</option>
						<option value="4">营销</option>
						<option ng-if="roles==2" value="0">运营，客服，美工，营销</option>

					</select>
				</div>
				<div>
					<span>职位</span>
					<input name="position" type="text" ng-model="$parent.position"maxlength="6"/></div>
				<div>
					<span>联系电话</span>
					<input ng-model="$parent.pho" name="phone" type="tel" maxlength="11" ng-pattern="/^1(3[0-9]|4[57]|5[0-35-9]|7[01678]|8[0-9])\\d{8}$/" /></div>
				</div>
			<div class="modal-footer modal-footer-a">
			<button type="button" class="btn btn-green" ng-click="addModal.confirm()" style="margin-left:-30px;margin-bottom: 20px;">确定</button>
		</div>
		</div>
		
	</div>
</div>
<div ng-if="tipModal.isShow" class="tipModal"   style="display: block;" class="modal fade in" tabindex="-1" role="dialog"
             aria-labelledby="myModalLabel" aria-hidden="false">
            <div class="modal-backdrop fade in"></div>
            <div class="modal-dialog modal-sm">
                <div class="modal-content">
                    <div class="modal-header modal-header-tip">
                        <div class="btn-close" data-dismiss="modal"><i class="icon-close icon-close1"
                                                                       ng-click="tipModal.hide()"></i></div>
                        <h4 class="modal-title" ng-bind="tipModal.title"></h4>
                    </div>
                    <div class="modal-body modal-body-tip">
                        企业人数已满<br/>暂无法添加
                    </div>
                    <div class="modal-footer" style="text-align: center;margin-top: 40px;">
                        <button style="margin-right: 0" class="btn btn-green" ng-click="tipModal.confirm()">我知道了</button>
                    </div>
                </div>
            </div>
        </div>  
</div>
</div>
<div  ng-if="editModal.isShow" class="tipModal" style="display: block;" class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
	<div class="modal-backdrop fade in"></div>
	<div class="modal-dialog modal-sm">
		<div class="modal-content">
			<div class="modal-header modal-header-tip">
				<div class="btn-close" data-dismiss="modal"><i class="icon-close icon-close1" ng-click="editModal.hide()"></i></div>
				<h4 class="modal-title" ng-bind="editModal.title"></h4>
			</div>
			<div class="tips" ></div>
			<div class="modal-body modal-body-tip">
				<div>
					<span>选择角色</span>
					<select name="selectRole" id="selectRole" ng-model="editModal.rolename" value="editModal.rolename">
						<option ng-selected="editModal.rolename==0" value="0">成员</option>
						<option ng-selected="editModal.rolename==2" value="2">管理员</option>
					</select>
				</div>
				<div><span>选择岗位</span>
					<select name="selectPost" id="selectPost" ng-model="editModal.cate_id" ng-disabled="editModal.rolename=='2'"ng-class="{posts_color:editModal.rolename=='2'}">
						<!--<option ng-show="sel" ng-click="seclec"value="">{{editModal.catename}}</option>-->
						<option value="1">运营</option>
						<option value="2">客服</option>
						<option value="3">美工</option>
						<option value="4">营销</option>
						<option value="0" ng-if="editModal.rolename=='2'">运营，客服，美工，营销</option>
					</select>
				</div>
				<div>
					<span>职位</span>
					<input name="position" type="text" ng-model="editModal.position" maxlength="6"/></div>
				<div>
					<span>联系电话</span>
					<input type="tel" disabled="" value="{{editModal.phone}}" style="color: #333;font-size: 12px;"></div>
			</div>
			<div class="modal-footer modal-footer-a">
			<button type="button" class="btn btn-green" ng-click="editModal.confirm()" style="margin-left:-30px;margin-bottom: 20px;">确定</button>
		</div>
		</div>

	</div>
</div>
